package net.lab1024.sa.admin.module.exam.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * 试题表 新建表单
 *
 * @Author cfsjiazy
 * @Date 2025-10-20 16:36:35
 * @Copyright 1.0
 */

@Data
public class QuestionAddForm {

    @Schema(description = "试题解析", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "试题解析 不能为空")
    private String explanation;

    @Schema(description = "所属章节ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "所属章节ID 不能为空")
    private Long chapterId;

    @Schema(description = "知识点标签", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "知识点标签 不能为空")
    private String knowledgePoints;

    @Schema(description = "试题年份", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "试题年份 不能为空")
    private Integer year;

    @Schema(description = "试题来源", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "试题来源 不能为空")
    private String source;

    @Schema(description = "排序字段", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "排序字段 不能为空")
    private Integer sortOrder;

    @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "备注 不能为空")
    private String remark;

    @Schema(description = "创建人ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "创建人ID 不能为空")
    private Long createBy;

    @Schema(description = "更新人ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "更新人ID 不能为空")
    private Long updateBy;

}